import service from "@/utils/request";

export const useAddApi = (data) => {
    return service.post('/${t.varName}/add', data)
}

export const useDeleteApi = (data) => {
    return service.post('/${t.varName}/delete', data)
}

export const useDeletesApi = (data) => {
    return service.post('/${t.varName}/deleteByIds', data)
}

export const useUpdateApi = (data) => {
    return service.post('/${t.varName}/update', data)
}

export const useGetByIdApi = (data) => {
    return service.post('/${t.varName}/getById', data)
}

export const useGetListApi = (data) => {
    return service.post('/${t.varName}/getList', data)
}
